package com.ruoyi.web.controller.eventbus;

import com.ruoyi.web.controller.eventbus.bigdata.BigDataSerachEventBus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class EventHandler {
    @Autowired
    private EventBusContext  eventBusContext;
    @Autowired
    private BigDataSerachEventBus bigDataSerachEventBus;
    @PostConstruct
    public void init() {
        eventBusContext.register(bigDataSerachEventBus);
    }

}
